package net.xiaosaguo.mymall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.xiaosaguo.common.utils.PageUtils;
import net.xiaosaguo.mymall.product.entity.AttrEntity;
import net.xiaosaguo.mymall.product.vo.AttrAttrGroupRelationVO;
import net.xiaosaguo.mymall.product.vo.AttrRespVO;
import net.xiaosaguo.mymall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xiaosaguo
 * @email guoyx@vip.qq.com
 * @date 2020-06-04 22:35:11
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVO getAttrInfo(Long attrId);

    void updateAttr(AttrVO attr);

    List<AttrEntity> getAttrByAttrGroup(Long attrgroupId);

    void deleteAttrAttrGroupRelation(List<AttrAttrGroupRelationVO> list);

    PageUtils getAttrByAttrGroupNoRelation(Map<String, Object> params, Long attrgroupId);
}

